package com.vanzo.service;

import android.accessibilityservice.AccessibilityService;
import android.view.KeyEvent;
import android.view.accessibility.AccessibilityEvent;

import com.vanzo.util.LogUtil;

/**
 * Created by tisen on 2018/2/6.
 */

public class KeyService extends AccessibilityService {
    @Override
    public void onAccessibilityEvent(AccessibilityEvent event) {

    }

    @Override
    public void onInterrupt() {

    }

    @Override
    protected boolean onKeyEvent(KeyEvent event) {
        LogUtil.put(this, " event = " + event, LogUtil.WARN);
        return super.onKeyEvent(event);
    }
}
